package com.example.administrator.qimo3no74.category.fragment;


import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.administrator.qimo3no74.R;


public class OthersFragment extends Fragment {
    private String itemName;
    private TextView text1;

    public OthersFragment() {
        // Required empty public constructor
    }

    @SuppressLint("ValidFragment")
    public OthersFragment(String itemName) {
        this.itemName = itemName;
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_others, container, false);
        text1 = view.findViewById(R.id.text1);
        text1.setText(itemName);
        return view;
    }

}
